package com.gopay.common.domain.user.identify;

import com.gopay.common.domain.BaseEntity;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 身份证已用额度表
 * @PersIdUsedQuota.java
 * @author Light
 * @2016年5月9日 下午3:25:02  www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name = "PERS_ID_USED_QUOTA")
public class PersIdUsedQuotaOld extends BaseEntity{

    private static final long serialVersionUID = 4656593065188094885L;
    
    /**
     * 身份证号
     */
    private String identifyNo;
    
    /**
     * 客户分类 1 - 一类账户 2 - 二类账户 3 - 三类账户
     */
    private String custCategory;
    
    /**
     * 终身累计已用额度 一类账户使用
     */
    private BigDecimal allUsedQuota;
    
    /**
     * 年累计已用额度 二三类账户使用
     */
    private BigDecimal yearUsedQuota;
    
    /**
     * 创建用户ID
     */
    private String createdUserId;
    
    /**
     * 创建时间
     */
    private Date createdTs;
    
    /**
     * 最后修改用户ID
     */
    private String lastUpdUserId;
    
    /**
     * 最后修改时间
     */
    private Date lastUpdTs;
    
    /**
     * 乐观锁版本号
     */
    private Integer version;
    
    @Id
    @Column( name = "IDENTIFY_NO", length=20 )
    public String getIdentifyNo() {
        return identifyNo;
    }
    public void setIdentifyNo(String identifyNo) {
        this.identifyNo = identifyNo;
    }

    @Column( name = "CUST_CATEGORY", length=2 )
    public String getCustCategory() {
        return custCategory;
    }

    public void setCustCategory(String custCategory) {
        this.custCategory = custCategory;
    }
    @Column( name = "ALL_USED_QUOTA", precision = 18, scale = 2 )
    public BigDecimal getAllUsedQuota() {
        return allUsedQuota;
    }
    public void setAllUsedQuota(BigDecimal allUsedQuota) {
        this.allUsedQuota = allUsedQuota;
    }
    @Column( name = "YEAR_USED_QUOTA", precision = 18, scale = 2)
    public BigDecimal getYearUsedQuota() {
        return yearUsedQuota;
    }
    public void setYearUsedQuota(BigDecimal yearUsedQuota) {
        this.yearUsedQuota = yearUsedQuota;
    }
    @Column( name = "CREATED_USER_ID", length=10 )
    public String getCreatedUserId() {
        return createdUserId;
    }
    public void setCreatedUserId(String createdUserId) {
        this.createdUserId = createdUserId;
    }

    @Column(name = "CREATED_TS")
    @Temporal(TemporalType.TIMESTAMP)
    public Date getCreatedTs() {
        return createdTs;
    }
    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }
    
    @Column(name = "LAST_UPD_USER_ID", length=10)
    public String getLastUpdUserId() {
        return lastUpdUserId;
    }
    public void setLastUpdUserId(String lastUpdUserId) {
        this.lastUpdUserId = lastUpdUserId;
    }
    
    @Column(name = "LAST_UPD_TS")
    @Temporal(TemporalType.TIMESTAMP)
    public Date getLastUpdTs() {
        return lastUpdTs;
    }
    public void setLastUpdTs(Date lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }
    
    @Version
    @Column(name = "VERSION", precision = 22, scale = 0)
    public Integer getVersion() {
        return version;
    }
    public void setVersion(Integer version) {
        this.version = version;
    }
    
    
}       
